package com.iot08.api.service;

import com.iot08.common.entity.app.SchoolTimetable;
import com.iot08.common.service.base.BaseService;
import com.iot08.common.utils.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author weichao 1299101858@qq.com
 * @version 1.0
 * @date 4/28/22 3:38 PM
 */
@Slf4j
@Service
public class SchoolTimetableService extends BaseService<SchoolTimetable> {
    public void add(SchoolTimetable schoolTimetable) {
        schoolTimetable.setChangeTime(new Date());
        this.save(schoolTimetable);
    }

    public void update(SchoolTimetable schoolTimetable) {
        schoolTimetable.setChangeTime(new Date());
        this.save(schoolTimetable);
    }
}
